package com.zkh.myframe.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 请求类型
 * @author zkh
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMethod {
	/* 请求类型对应常量 */
	String GET = "GET";
	String HEAD = "HEAD";
	String POST = "POST";
	String PUT = "PUT";
	String DELETE = "DELETE";
	String OPTIONS = "OPTIONS";
	String TRACE = "TRACE";
	String PATCH = "PATCH";

	/**
	 * 请求方法。值可直接输入，或调用<code>RequestMethod.具体常量</code>，如<code>RequestMethod.POST</code>
	 */
	String method();
}
